let pathName = "/mine"
export default {
  routers: (pathName => [{
    path: pathName,
    name: pathName,
    component: () => import('@/views/base/Layout'),
    children: [{
        path: 'disclaimer',
        name: 'disclaimer',
        meta: {
          title: '免责声明'
        },
        component: () => import('@/views/mine/Disclaimer'),
      },
      {
        path: 'all-orders',
        name: 'all-orders',
        meta: {
          title: '全部订单'
        },
        component: () => import('@/views/mine/AllOrders'),
      }, {
        path: 'express',
        name: 'express',
        meta: {
          title: '填写快递信息'
        },
        component: () => import('@/views/mine/Express'),
      }, {
        path: 'planting-code',
        name: 'planting-code',
        meta: {
          title: '种植密码'
        },
        component: () => import('@/views/mine/PlantingCode'),
      }, {
        path: 'order-detail',
        name: 'order-detail',
        meta: {
          title: '订单详情'
        },
        component: () => import('@/views/mine/OrderDetail'),
      }, {
        path: 'sample-sending-information',
        name: 'sample-sending-information',
        meta: {
          title: '送样信息'
        },
        component: () => import('@/views/mine/SampleSendingInformation'),
      },


    ]
  }, {
    path: '/set',
    name: 'set',
    meta: {
      title: '清空token'
    },
    component: () => import('@/views/mine/SetToken'),
  }])(pathName)
}
